package com.Customer.mapper;

import com.Customer.entity.Customer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 客户信息 Mapper接口
 */
@Mapper
public interface  CustomerMapper {

    /**
     * 添加客户信息
     * @param customer
     * @return
     */
    int doAddCustomerInfo(Customer customer);

    /**
     * 修改客户信息
     * @param customer
     * @return
     */
    int doModifyCustomerInfo(Customer customer);

    /**
     * 删除客户信息
     * @param customer
     * @return
     */
    int doDeleteCustomerInfo(Customer customer);

    /**
     * 获取客户信息
     * @param customer
     * @return
     */
    Customer doGetCustomerInfo(Customer customer);

    /**
     * 获取客户列表
     * @return
     */
    List<Customer> doGetCustomerInfoList();

    /**
     * 查询客户列表
     * @param customer
     * @return
     */
    List<Customer> doQueryCustomerInfoList(Customer customer);

}
